package q10.Arbori;
import q10.Visitor.*;

public class Nod {

	protected Nod fStang,fDrept;
	protected double x;
	
	public Nod getfStang() 
	{
		return fStang;
	}
	
	public void setfStang(Nod fStang) 
	{
		this.fStang = fStang;
	}
	
	public Nod getfDrept() 
	{
		return fDrept;
	}
	
	public void setfDrept(Nod fDrept) 
	{
		this.fDrept = fDrept;
	}
	
	public double getX() 
	{
		return x;
	}
	
	public void setX(double x) 
	{
		this.x = x;
		//fStang.x=x;
	}
	public void acceptVisitor(Visitor v){
		v.visit(this);
		}

//	public abstract double calcul();
//	public abstract String derivare();
//	public abstract double calculDerivata();
//	public abstract String toString();
}
